package com.songlanyun.modules.marketing.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.modules.marketing.seckill.entity.SeckillActivity;
import com.songlanyun.modules.marketing.seckill.entity.SeckillActivityGoods;
import com.songlanyun.modules.marketing.seckill.entity.SeckillActivityTimeItem;
import com.songlanyun.modules.marketing.seckill.model.dto.SeckillActivityDTO;
import com.songlanyun.modules.marketing.seckill.model.vo.SeckillActivityGoodsVO;
import org.redisson.api.RSemaphore;


import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 秒杀活动表
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-11-23 17:30:11
 */
public interface SeckillActivityService extends IService<SeckillActivity> {

    PageUtils queryPage(Map<String, Object> params);

    SeckillActivity saveSeckill(SeckillActivityDTO dto);

    SeckillActivity getInfoById(Long id);

    SeckillActivity getById(Long id, Boolean isThrow);

    void updateSeckill(SeckillActivityDTO dto);

    SeckillActivity getByShopIdAndId(Long shopId, Long seckillId, boolean b);

    List<SeckillActivity> getShopSeckillList(Long shopId);

    Long finishTime(Long shopId);

    void delById(Long id);
}

